# OpenCV
find_package(OpenCV REQUIRED)

option(USE_OCV_UKF "Should use the Unscented Kalman Filterr from opencv_contrib?" ON)
if(USE_OCV_UKF)
    add_definitions(-DUSE_OCV_UKF)
endif(USE_OCV_UKF)

include_directories(${CMAKE_CURRENT_LIST_DIR}/../common)
include_directories(${CMAKE_CURRENT_LIST_DIR}/src/)
include_directories(${CMAKE_CURRENT_LIST_DIR}/src/graph/GTL/include)

file(GLOB_RECURSE mtt_srcs ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp ${CMAKE_CURRENT_LIST_DIR}/src/*.c)

add_library(multitarget-tracker STATIC ${mtt_srcs})
target_link_libraries(multitarget-tracker ${OpenCV_LIBS})